#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include <string.h>
#include<assert.h>
void* my_memmove(void* destination, const  void* source, size_t  num)
{
	int i = 0;
	if (source > destination)
	{
	
	  for (i = 0; i < num; i++)
	   {
		*((char*)destination + i) = *((char*)source + i);

	   }
    }
	else
		for (i = num-1; i >0; i--)
		{
			*((char*)destination + i) = *((char*)source + i);

		}
	return destination;
}



int main()
{

	char arr[] = "as*.asfs.safg";
	my_memmove(arr, arr + 2, 3);
	return 0;

}